package yun1.shuxue;

public class ZhuanHuan {

	public static void main(String[] args) {
		
		System.out.println(Integer.toBinaryString(9));
		
		System.out.println(Integer.toOctalString(9));//11O
		
		System.out.println(Integer.toHexString(9));//
		
		//非10进制转10进制
		
		//1011B
		System.out.println(Integer.parseInt("1011", 2));
		System.out.println(Integer.parseInt("1234", 8));
		System.out.println(Integer.parseInt("1A2B", 16));
		
		System.out.println(Integer.toString(255, 16));
		
	}

}
